// 1.导入vue-router包
import VueRouter from 'vue-router'

// 导入组件
import Home from  './components/tabbars/HomeCon.vue'
import Order from  './components/tabbars/OrderCon.vue'
import Discrove from './components/tabbars/DiscroveCon.vue'
import My from './components/tabbars/MyCon.vue'

// 3.创建路由对象
var router = new VueRouter({
    routes:[
       {path:'/',redirect:'/Home'},
       {path:'/Order',component:Order},
       {path:'/Home',component:Home},
       {path:'/Discrove',component:Discrove},
       {path:'/My',component:My}

    ],
    linkActiveClass:'mui-active'
})

// 把路由对象暴露出去
export default router